package com.kou.dao;

import com.kou.pojo.Goods;

import java.util.List;

/**
 * @author SteinY
 * @create 2022-03-25 15:22
 * @description:
 */
public interface GoodsDao {
    List<Goods> findGoodslist(String tid, String currentPage, int pageSize);

    Long findGoodsCount(String tid);

    Goods findGoodsById(String pid);

    List<Goods> select(String input, String currentPage, int pageSize);

    Long selectCount(String input);

    List<Goods> findAll();

    void create(Goods goods);

    void delete(String id);

    List<Goods> search(String name, String price);

    void update(Goods good);
}
